package com.itheima_0517.array;

import com.itheima.age.Stundent;
import com.itheima_0517.domain.Student;

public class TestObjectArray {
    public static void main(String[] args) {
        Student[] arr = new Student[3];
        System.out.println(arr);
        Student stu = new Student("张三","23");
        Student stu2 = new Student("李四","23");
        Student stu3 = new Student("王五","25");

        arr[0] = stu;
        arr[1] = stu2;
        arr[2] = stu3;

        for (int i = 0; i < arr.length; i++) {
            System.out.println(arr[i].getUsername()+"----"+arr[i].getAge());
        }
        String s = "";
        System.out.println(s);
        StringBuilder sb = new StringBuilder();
        System.out.println(sb);
    }
}
